﻿<UserControl x:Class="Jbe.TestSuite.TestDevices.FunctionGenerator.ControlView.Presentation.ConfigurationView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:p="clr-namespace:Jbe.TestSuite.TestDevices.FunctionGenerator.ControlView.Properties"
    xmlns:cae="http://www.codeplex.com/CompositeExtensions"
    xmlns:i="http://www.codeplex.com/CompositeExtensions/TestSuite/Interface"
    cae:ResourceService.MergeSharedDictionaries="{x:Static i:ResourceHelper.SharedResourcePath}">
    
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="11"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" SharedSizeGroup="Column0"/>
            <ColumnDefinition Width="Auto" SharedSizeGroup="Column1"/>
            <ColumnDefinition Width="11"/>
        </Grid.ColumnDefinitions>
        
        <Label Content="{x:Static p:Resources.WaveForm}" Grid.Row="0" Grid.Column="0"/>
        <RadioButton Content="{x:Static p:Resources.Sine}" IsChecked="{Binding SineWaveForm}" Grid.Row="0" Grid.Column="1" VerticalAlignment="Bottom"/>
        <RadioButton Content="{x:Static p:Resources.Square}" IsChecked="{Binding SquareWaveForm}" Grid.Row="1" Grid.Column="1" Margin="11,7,0,0"/>
        <RadioButton Content="{x:Static p:Resources.Triangle}" IsChecked="{Binding TriangleWaveForm}" Grid.Row="2" Grid.Column="1" Margin="11,7,0,0"/>
        <RadioButton Content="{x:Static p:Resources.Sawtooth}" IsChecked="{Binding SawtoothWaveForm}" Grid.Row="3" Grid.Column="1" Margin="11,7,0,0"/>
        <Label Content="{x:Static p:Resources.Amplitude}" Grid.Row="4" Grid.Column="0"/>
        <TextBox Text="{Binding Config.Amplitude, StringFormat=\{0:0.00\}, ValidatesOnExceptions=True}" Grid.Row="4" Grid.Column="1"/>
        <Label Content="{x:Static p:Resources.Frequency}" Grid.Row="5" Grid.Column="0" Margin="11,7,0,0"/>
        <TextBox Text="{Binding Config.Frequency, StringFormat=\{0:0.00\}, ValidatesOnExceptions=True}" Grid.Row="5" Grid.Column="1" Margin="11,7,0,0"/>
    </Grid>
</UserControl>
